import {common, http} from 'src/service/common'

export default {
  /**
   * 查询网站信息
   * @param data
   * @returns {Promise<*>}
   */
  searchSite: async function (data) {
    return common.datas(await  http.post("/api/sys/site/search", data));
  },
  clearDataBaseCache: async function (data) {
    return common.datas(await  http.post("/api/sys/cache/database", data));
  },
  clearViewTemplateCache: async function (data) {
    return common.datas(await  http.post("/api/sys/cache/view", data));
  },
  clearAllCache: async function (data) {
    return common.datas(await  http.post("/api/sys/cache/all", data));
  },
  saveTask: async function (data) {
    return common.datas(await  http.post("/api/sys/task", data));
  }
}
